import { HETAxios, urlCombine } from "./HETAxios.js";
// 获取策略管理-程序白名单列表
export const req_getWhitelistPolicylist = (deviceId,params) => HETAxios('GET',`strategyManager/whitelist/${deviceId}/whitelist/policylist`,params)
// 获取策略管理-程序白名单列表-新增
export const req_addWhitelistPolicylist = (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/whitelist/policylist/${param.policyName}`)
// 获取策略管理-程序白名单列表-编辑
export const req_setWhitelistPolicylist = (param,body) => HETAxios('PUT',`strategyManager/device/${param.deviceId}/whitelist/policylist/${param.policyName}`,body)
// 获取策略管理-程序白名单列表-部署
export const req_setWhitelistDeploy = (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/whitelist/policylist/deploy/${param.policyId}`)
// 获取策略管理-程序白名单列表-取消部署
export const req_setWhitelistUndeploy = (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/whitelist/policylist/undeploy/${param.policyId}`)
// 获取策略管理-程序白名单列表-删除
export const req_deleteWhitelistPolicylist = (param) => HETAxios('DELETE',`strategyManager/device/${param.deviceId}/whitelist/policylist/${param.policyId}`)
// 获取策略管理-程序白名单列表-导入
export const req_importWhitelist = (deviceId,body) => HETAxios('POST',`strategyManager/device/${deviceId}/whitelist/policylist/import`,body)
// 获取策略管理-程序白名单列表-导出
export const req_exportWhitelist = (deviceId,body) => HETAxios('POST',`strategyManager/device/${deviceId}/whitelist/policylist/export`,body)
// 获取策略管理-当前程序白名单列表
export const req_getWhitelist = (deviceId,param) => HETAxios('GET',`strategyManager/whitelist/${deviceId}/whitelist`,param)
// 获取策略管理-当前程序白名单列表-添加文件
export const req_setWhitelistFile = (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/whitelist/${param.policyId}/file`,param.json)
// 获取策略管理-当前程序白名单列表-删除
export const req_deleteWhitelistFile = (param) => HETAxios('DELETE',`strategyManager/device/${param.deviceId}/whitelist/${param.policyId}/file`,param.json)
// 获取策略管理-操作系统白名单-手动添加-获取文件签名
export const req_getWhitelistFilecert = (param) => HETAxios('GET',`strategyManager/device/${param.deviceId}/whitelist/filecert`,{"file":param.file})
export const req_getFilecert = (param) => HETAxios('POST',`strategyManager/log/${param.deviceId}/filecert`,param)
// 获取策略管理-内置白名单列表
export const req_getbuiltInWhitelist = (deviceId,param) => HETAxios('GET',`strategyManager/device/${deviceId}/whitelist/categorylist`,param)
// 获取策略管理-内置白名单列表详情页
export const req_getbuiltInWhitelistDetails = (deviceId,param) => HETAxios('GET',`strategyManager/device/${deviceId}/whitelist/category`,param)
// 获取策略管理-内置白名单应用
export const req_setWhitelistApplycredit = (deviceId,param) => HETAxios('POST',`strategyManager/device/${deviceId}/whitelist/applycredit`,param)
// 应用程序设置查询
export const req_getSystemConfig = (deviceId,param) => HETAxios('POST',`strategyManager/device/${deviceId}/system/config`,param)
// 应用程序设置
export const req_setSystemConfig = (deviceId,param) => HETAxios('PUT',`strategyManager/device/${deviceId}/system/config`,param)
// 审计日志-外设设置
export const req_setHard = (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/whitelist/${param.policyId}/hard`,param.json)
// 当前程序白名单-添加目录
export const req_setPeriphreal= (param) => HETAxios('POST',`strategyManager/device/${param.deviceId}/periphreal/path`,param.json)
export const req_KillList = (deviceId,params) => HETAxios('GET',`strategyManager/whitelist/${deviceId}/listKill`,params)
export const req_KillAdd = (deviceId, param) => HETAxios('POST',`strategyManager/whitelist/${deviceId}/addKill`,param)
export const req_KillEdit = (deviceId, param) => HETAxios('POST',`strategyManager/whitelist/${deviceId}/editKill`,param)
export const req_KillDelete = (deviceId, param) => HETAxios('POST',`strategyManager/whitelist/${deviceId}/deleteKill`,param)
export const req_SyncAdd = (deviceId) => HETAxios('POST',`strategyManager/whitelist/${deviceId}/sync`)
